package com.aspose.cells;

import java.io.InputStream;

public class PictureCollection extends CollectionBase {
   private ShapeCollection b;

   PictureCollection(ShapeCollection shapes) {
      this.b = shapes;
   }

   public int add(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn, InputStream stream) {
      com.aspose.cells.b.a.d.zh var6 = com.aspose.cells.a.c.zw.a(stream);
      this.b.a(upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn, var6);
      return this.getCount() - 1;
   }

   int a(int var1, int var2, int var3, int var4, com.aspose.cells.b.a.d.zm var5) {
      this.b.a(var1, var2, var3, var4, var5);
      return this.getCount() - 1;
   }

   public int add(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn, String fileName) throws Exception {
      if (!com.aspose.cells.b.a.d.zd.c(fileName)) {
         throw new CellsException(6, "File does not exist.");
      } else {
         com.aspose.cells.b.a.d.ze var6 = com.aspose.cells.b.a.d.zd.b(fileName);
         this.a(upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn, var6);
         var6.a();
         return this.getCount() - 1;
      }
   }

   public int add(int upperLeftRow, int upperLeftColumn, InputStream stream) {
      com.aspose.cells.b.a.d.zh var4 = com.aspose.cells.a.c.zw.a(stream);
      return this.a(upperLeftRow, upperLeftColumn, var4, 100, 100);
   }

   int a(int var1, int var2, com.aspose.cells.b.a.d.zm var3) {
      return this.a(var1, var2, var3, 100, 100);
   }

   public int add(int upperLeftRow, int upperLeftColumn, String fileName) throws Exception {
      if (!com.aspose.cells.b.a.d.zd.c(fileName)) {
         throw new CellsException(6, "File does not exist.");
      } else {
         com.aspose.cells.b.a.d.ze var4 = com.aspose.cells.b.a.d.zd.b(fileName);
         this.a(upperLeftRow, upperLeftColumn, var4);
         var4.a();
         return this.getCount() - 1;
      }
   }

   public int add(int upperLeftRow, int upperLeftColumn, InputStream stream, int widthScale, int heightScale) {
      com.aspose.cells.b.a.d.zh var6 = com.aspose.cells.a.c.zw.a(stream);
      this.b.a(upperLeftRow, upperLeftColumn, var6, widthScale, heightScale);
      return this.getCount() - 1;
   }

   int a(int var1, int var2, com.aspose.cells.b.a.d.zm var3, int var4, int var5) {
      this.b.a(var1, var2, var3, var4, var5);
      return this.getCount() - 1;
   }

   public int add(int upperLeftRow, int upperLeftColumn, String fileName, int widthScale, int heightScale) throws Exception {
      if (!com.aspose.cells.b.a.d.zd.c(fileName)) {
         throw new CellsException(6, "File does not exist.");
      } else {
         com.aspose.cells.b.a.d.ze var6 = com.aspose.cells.b.a.d.zd.b(fileName);
         this.a(upperLeftRow, upperLeftColumn, var6, widthScale, heightScale);
         var6.a();
         return this.getCount() - 1;
      }
   }

   public Picture get(int index) {
      return (Picture)this.a.get(index);
   }

   public void clear() {
      for(int var1 = 0; var1 < this.a.size(); ++var1) {
         Picture var2 = (Picture)this.a.get(var1--);
         this.b.b(var2);
      }

   }

   public void removeAt(int index) {
      Picture var2 = (Picture)this.a.get(index);
      this.b.b(var2);
   }

   int a(Picture var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
      return this.getCount() - 1;
   }

   void b(Picture var1) {
      this.a.remove(var1);
   }
}
